<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="weaver.general.Util"%>
<%@page import="weaver.conn.RecordSet"%>
<%
String action = Util.null2String(request.getParameter("action"));
RecordSet rs = new RecordSet();
if(action.equals("checkUsed")){
	String requestmark = Util.null2String(request.getParameter("requestmark"));
	String flag = "0";

	String sql = "select 1 from formtable_main_465 m,formtable_main_465_dt1 d where m.id=d.mainid and d.qzlc=(select requestid from formtable_main_463 where XBLNR = '"+requestmark+"')";
	rs.execute(sql);
	if(rs.next()){
		flag = "0";
	}
	out.print("{'result':'"+flag+"'}");
}
%>
